package com.estronger.shopmanage.bean;

import java.util.ArrayList;

public class B10MeasureList extends BeanBase {

	public ArrayList<MeasureListData> data;

	public class MeasureListData {
		public String measureid;
		public String cstbuildname;
		public String cstname;
		public String cstmobile;
		public String planmeasuredate;
		public String actmeasuredate;

		public String firstdemand;
		public String address;
		public String measurestatus;
		public String measurestatusdesc;
		public String responsestatus;

		public String responsestatusdesc;
		public String cstlinkstatus;
		public String cstlinkstatusdesc;
		public String remark;
		public String status;
		public String typedesc;

		public MeasureListData(String measureid, String cstbuildname, String cstname, String cstmobile,
							   String planmeasuredate, String actmeasuredate, String firstdemand, String address,
							   String measurestatus, String measurestatusdesc, String responsestatus, String responsestatusdesc,
							   String cstlinkstatus, String cstlinkstatusdesc, String remark, String status) {
			this.measureid = measureid;
			this.cstbuildname = cstbuildname;
			this.cstname = cstname;
			this.cstmobile = cstmobile;
			this.planmeasuredate = planmeasuredate;
			this.actmeasuredate = actmeasuredate;
			this.firstdemand = firstdemand;
			this.address = address;
			this.measurestatus = measurestatus;
			this.measurestatusdesc = measurestatusdesc;
			this.responsestatus = responsestatus;
			this.responsestatusdesc = responsestatusdesc;
			this.cstlinkstatus = cstlinkstatus;
			this.cstlinkstatusdesc = cstlinkstatusdesc;
			this.remark = remark;
			this.status = status;
		}

		public String getPlanmeasuredate() {
			if(planmeasuredate==null || planmeasuredate.equals("") || planmeasuredate.toLowerCase().equals("null")){
				return "";
			}else if(planmeasuredate.lastIndexOf(":")>planmeasuredate.indexOf(":")){
                return planmeasuredate.substring(0, planmeasuredate.lastIndexOf(":"));
			}
			return planmeasuredate;
		}
	}

}
